<?php
require_once 'core/vn.session.php';
//$session = new VNSession();
$vn = new VNBase(bool(true));

$p = isset($_GET['p']) ? $p : "home";
/*
 * If the user is logging out, log them out and set the home page.
 */
if($p == "logout"){
	$session->logout();
	$p = "home";
}elseif($p == "login"){
	$session->login($_POST['username'], $_POST['password']);
	$p = "home";
}


?>
